package com.baizhi.controller;

import com.baizhi.annotation.LogAnnotation;
import com.baizhi.entity.Log;
import com.baizhi.service.LogService;
import org.aspectj.lang.annotation.After;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/log")
public class LogController {
    @Autowired(required = false)
    private LogService logService;

    @RequestMapping("/selectAll")
    @LogAnnotation(value = "展示日志",type = "selectAll")
    public Map selectAll(int page,int limit,String logType){
        return logService.selectAll(page, limit, logType);
    }

}
